<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
			<title>Insert title here</title>
			<#include "/_view/common/jquery.ftl"/>
	</head>
	<body>

		<p>线路签到后选择下单</p>
		<table>
			<#list lines as data>
			<tr>
				<td>线路:${data.title!}</td>
				<td>
					<a href=" javascript:void(0)" onclick="driverSign(${data.id});">签到</a>
				</td>
			</tr>
			<tr>
				<td colspan=2>从 ${data.begin_place_data.title} 的
					${data.begin_place_data.address!} 直达 ${data.end_place_data.title} 的
					${data.end_place_data.address!}</td>
			</tr>
			</#list>
		</table>
		<hr>

<#if signs??>
			<p>最近打卡</p>


			<table>
				<tr>
					<th>签到时间</th>
					<th>地点</th>
					<th>上车地点</th>
					<th>操作</th>
				</tr>

				<#list signs as data>
				<tr>
					<td>${data.sign_create_time!}</td>
					<td>${data.title!}</td>
					<td>${data.address!}</td>
					<!-- <td>${data.sign_status!}</td> -->
					<td>
						<#if data.sign_status==1>
						<a href="userOrderList2?${_now}">开始接人</a>
						</#if>
					</td>
				</tr>
				<tr>
					</#list>
			</table>


			<hr>
</#if>
	</body>

	<script type="text/javascript">

		function driverSign(id){
		if(confirm('确定签到?')){
		postDataParameter("driverSign",{id:id},"userOrderList",true);
		}
		}
	</script>

</html>